package com.teach.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.teach.util.DBUtil;
import java.io.Serializable;

/**
 * <pre>
 * - 获奖信息实体类
 * Author : J.L.Zhou
 * E-Mail : 12020042@qq.com
 * Tel : 151 1104 7708
 * Date : 2022-05-04 14:15
 * Version : 1.0
 * Copyright 2021 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 */
public class MedalInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * MEDAL_ID INT 获奖编号
     */
    @DBUtil.Id
    private Integer medalId;

    /**
     * SE_ID INT 体育项目编号
     */
    private Integer seId;

    /**
     * SPORTSMAN_ID INT 参赛人员编号
     */
    private Integer sportsmanId;

    /**
     * MEDAL_NUM INT 获奖名次
     */
    private Integer medalNum;

    /**
     * MEDAL_RESULT VARCHAR 获奖成绩
     */
    private String medalResult;

    /**
     * MEDAL_DATE DATE 获奖日期
     */
    @JSONField(format = "yyyy-MM-dd")
    private java.util.Date medalDate;

    /**
     * - 无参构造方法
     */
    public MedalInfo(){}

    /**
     * - 全参构造方法
     */
    public MedalInfo(Integer medalId, Integer seId, Integer sportsmanId, Integer medalNum, String medalResult, java.util.Date medalDate){
        this.medalId = medalId;
        this.seId = seId;
        this.sportsmanId = sportsmanId;
        this.medalNum = medalNum;
        this.medalResult = medalResult;
        this.medalDate = medalDate;
    }

    /**
     * - 主键构造方法
     */
    public MedalInfo(Integer medalId){
        this.medalId = medalId;
    }


    /**
     * - 获取获奖编号
     */
    public Integer getMedalId(){
        return medalId;
    }

    /**
     * - 设置获奖编号
     */
    public void setMedalId(Integer medalId){
        this.medalId = medalId;
    }

    /**
     * - 获取体育项目编号
     */
    public Integer getSeId(){
        return seId;
    }

    /**
     * - 设置体育项目编号
     */
    public void setSeId(Integer seId){
        this.seId = seId;
    }

    /**
     * - 获取参赛人员编号
     */
    public Integer getSportsmanId(){
        return sportsmanId;
    }

    /**
     * - 设置参赛人员编号
     */
    public void setSportsmanId(Integer sportsmanId){
        this.sportsmanId = sportsmanId;
    }

    /**
     * - 获取获奖名次
     */
    public Integer getMedalNum(){
        return medalNum;
    }

    /**
     * - 设置获奖名次
     */
    public void setMedalNum(Integer medalNum){
        this.medalNum = medalNum;
    }

    /**
     * - 获取获奖成绩
     */
    public String getMedalResult(){
        return medalResult;
    }

    /**
     * - 设置获奖成绩
     */
    public void setMedalResult(String medalResult){
        this.medalResult = medalResult;
    }

    /**
     * - 获取获奖日期
     */
    public java.util.Date getMedalDate(){
        return medalDate;
    }

    /**
     * - 设置获奖日期
     */
    public void setMedalDate(java.util.Date medalDate){
        this.medalDate = medalDate;
    }

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("MedalInfo [medalId=");
		builder.append(medalId);
		builder.append(", seId=");
		builder.append(seId);
		builder.append(", sportsmanId=");
		builder.append(sportsmanId);
		builder.append(", medalNum=");
		builder.append(medalNum);
		builder.append(", medalResult=");
		builder.append(medalResult);
		builder.append(", medalDate=");
		builder.append(medalDate);
		builder.append("]");
		return builder.toString();
	}
}
